-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Update Hyperbeat TVL Adapter #16935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update Hyperbeat TVL Adapter #16935
Conversation
This reverts commit 3bf807e.
feat: add hbUSDC
|
The adapter at projects/hyperbeat exports TVL: |
|
The adapter at projects/hyperbeat exports TVL: |
|
Can we please avoid totalSupply and use balanceOf instead |
balanceOf what? |
| const tvlMidasVaults = async (api) => { | ||
| const { midasVaults = {}, midasVaultTokenOracles = {} } = config | ||
| const vaultTokens = Object.keys(midasVaults) | ||
| const supplies = await api.multiCall({ calls: vaultTokens, abi: 'erc20:totalSupply' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here can we count the tokens deposited rather than the receipt tokens minted?
Changes:
Methodology:
Technical Details: